import { request } from "../utils/request";
const isD = import.meta.env.MODE === 'development'
    ? ''
    : ''

// 管理员登录
export function login(data: any) {
    return request({
        method: "post",
        url: `${isD}/dpl/v2/admin/login`,
        data,
    });
}

// 退出登录
export function logout(data: any) {
    return request({
        method: "post",
        url: `${isD}/dpl/v1/admin/logout`,
        data,
    });
}